package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.query.QueryObject;
import cn.wolfcode.p2p.business.domain.PaymentSchedule;
import cn.wolfcode.p2p.business.query.PaymentScheduleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentScheduleMapper {
    int insert(PaymentSchedule record);

    PaymentSchedule selectByPrimaryKey(Long id);


    int updateByPrimaryKey(PaymentSchedule record);

    List<PaymentSchedule> selectForList(QueryObject qo);

    int getReturnSuccessMonthIndexNumber(@Param("bidRequestId") Long bidRequestId, @Param("state") int state);
}